home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / system / gmplay / install < prev    next >
Text File  |  1996-06-21  |  6KB  |  288 lines

  1. ;
  2. ; GMPlay install script
  3. ; ---------------------
  4. ; © 1996 by Christian Buchner
  5. ;
  6. ; $VER: GMPlayInstall (19.06.96)
  7. ;
  8.  
  9. (set @app-name "GMPlay V1.2")
  10.  
  11. ; Do not allow Novice User (when running from Shell)
  12.  
  13. (if (= @user-level 0)
  14.     (set @user-level 1)
  15. )
  16.  
  17.  
  18. ;=============================================================================
  19. ; English strings
  20.  
  21. (set default_lang 4)
  22.  
  23. (set #welcomestring "GMPlay V1.2\n--------------\n©1995,96 by Christian Buchner & Alessandro de Luca\nGiftware, any donations welcome!\nPlease support the development of a fine program!\n")
  24. (set #whereprogram "Where shall I install GMPlay?\n A drawer called \"GMPlay\" will be created there.")
  25. (set #installwhat "Please select what parts of the\npackage you want to install.")
  26. (set #install0 "Install documentation (recommended)")
  27. (set #install1 "Install XPK libraries (recommended)")
  28. (set #install2 "Install the 14 bit driver (recommended)")
  29. (set #install3 "Install the IFF sound samples (recommended)")
  30. (set #install4 "Install the 14 bit calibration utility")
  31. (set #install5 "Install the example MIDI files")
  32. (set #install6 "Add GM: Assign to S:User-Startup (recommended)")
  33. (set #copyprogram "Copying GMPlay executable")
  34. (set #wheredocs "Where shall I place the documentation guide?\nPerhaps you prefer the HELP: directory?")
  35. (set #copydocs "Copying documentation guide.")
  36. (set #wherelibs "Where do you want the libraries installed?\nMake sure that there is a LIBS: assign to that directory.")
  37. (set #copyxpk "Copying xpkmaster.library.")
  38. (set #copyshri "Copying xpk SHRI sublibrary.")
  39. (set #copysqsh "Copying xpk SQSH sublibrary.")
  40. (set #copy14bit "Copying 14 bit sound driver.")
  41. (set #copytones "Copying tone samples (XPK SQSH packed!).")
  42. (set #copydrums "Copying drum samples (XPK SQSH packed!).")
  43. (set #copytonemap "Copying tone map file.")
  44. (set #copydrummap "Copying drum map file.")
  45. (set #copycalib "Copying 14 bit calibration utility.")
  46. (set #copymidi "Copying example MIDI files (XPK SHRI packed!).")
  47. (set #addassign "Adding Assign for \"GM:\" to your User-Startup.")
  48. (set #endmessage "GMPlay has been successfully installed.\nNote that GMPlay is a CLI-based program.\nPlease read the documentation.\nThen try playing the example songs.\n")
  49.  
  50. (complete 0)
  51.  
  52. (welcome #welcomestring)
  53.  
  54. (set #TargetDir
  55.     (askdir
  56.         (prompt #whereprogram)
  57.         (help @askdir-help)
  58.         (default
  59.             (expandpath
  60.                 (if (exists "GM:" (noreq))
  61.                     "GM:/"
  62.                 (if (exists "Music:" (noreq))
  63.                     "Music:"
  64.                 (if (exists "Sound:" (noreq))
  65.                       "Sound:"
  66.                 (if (exists "Work:Music" (noreq))
  67.                       "Work:Music"
  68.                 (if (exists "Work:Sound" (noreq))
  69.                       "Work:Sound"
  70.                 (if (exists "Work:" (noreq))
  71.                       "Work:" "SYS:"
  72.                 )))))))
  73.         )
  74.         (newpath)
  75.     )
  76. )
  77.  
  78. (set #DestDir (tackon #TargetDir "GMPlay"))
  79. (makedir #DestDir (infos))
  80.  
  81. (complete 10)
  82.  
  83. (set #InstFlags
  84.     (askoptions
  85.         (prompt #installwhat)
  86.         (help @askoptions-help)
  87.         (choices #install0
  88.              #install1
  89.              #install2
  90.              #install3
  91.              #install4
  92.              #install5
  93.              #install6
  94.         )
  95.     )
  96. )
  97.  
  98. (complete 20)
  99.  
  100. (copyfiles
  101.     (prompt #copyprogram)
  102.     (help @copyfiles-help)
  103.     (source "GMPlay")
  104.     (dest #DestDir)
  105.     (infos)
  106.     (confirm)
  107. )
  108.  
  109. (complete 30)
  110.  
  111. (if (BITAND #InstFlags 1)
  112.     (
  113.         (set #DocsDir
  114.             (askdir
  115.                 (prompt #wheredocs)
  116.                 (help @askdir-help)
  117.                 (default #DestDir)
  118.                 (newpath)
  119.             )
  120.         )
  121.         
  122.         (makedir #DocsDir)
  123.         
  124.         (copyfiles
  125.             (prompt #copydocs)
  126.             (help @copyfiles-help)
  127.             (source "GMPlay.guide")
  128.             (dest #DocsDir)
  129.             (infos)
  130.             (confirm)
  131.         )
  132.     )
  133. )
  134.  
  135. (complete 40)
  136.  
  137. (if (BITAND #InstFlags 2)
  138.     (
  139.         (set #LibsDir
  140.             (askdir
  141.                 (prompt #wherelibs)
  142.                 (help @askdir-help)
  143.                 (default "LIBS:")
  144.                 (newpath)
  145.             )
  146.         )
  147.         
  148.         (set #CompDir (tackon #LibsDir "compressors"))
  149.         (makedir #LibsDir)
  150.         (makedir #CompDir)
  151.         
  152.         (copylib
  153.             (prompt #copyxpk)
  154.             (help @copylib-help)
  155.             (source "Libs/xpkmaster.library")
  156.             (dest #LibsDir)
  157.             (confirm)
  158.         )
  159.         
  160.         (copylib
  161.             (prompt #copyshri)
  162.             (help @copylib-help)
  163.             (source "Libs/compressors/xpkSHRI.library")
  164.             (dest #CompDir)
  165.             (confirm)
  166.         )
  167.         
  168.         (copylib
  169.             (prompt #copysqsh)
  170.             (help @copylib-help)
  171.             (source "Libs/compressors/xpkSQSH.library")
  172.             (dest #CompDir)
  173.             (confirm)
  174.         )
  175.     )
  176. )
  177.  
  178.  
  179. (complete 50)
  180.  
  181. (if (BITAND #InstFlags 4)
  182.     (
  183.         (set #DriverDir (tackon #DestDir "SoundDrivers"))
  184.         (makedir #DriverDir)
  185.         
  186.         (copyfiles
  187.             (prompt #copy14bit)
  188.             (help @copyfiles-help)
  189.             (source "SoundDrivers")
  190.             (pattern "14bit#?")
  191.             (dest #DriverDir)
  192.             (confirm)
  193.         )
  194.     )
  195. )
  196.  
  197. (complete 60)
  198.  
  199. (if (BITAND #InstFlags 8)
  200.     (
  201.         (copyfiles
  202.             (prompt #copytones)
  203.             (help @copyfiles-help)
  204.             (source "")
  205.             (pattern "Tones")
  206.             (dest #DestDir)
  207.             (confirm)
  208.         )
  209.         
  210.         (copyfiles
  211.             (prompt #copydrums)
  212.             (help @copyfiles-help)
  213.             (source "")
  214.             (pattern "Drums")
  215.             (dest #DestDir)
  216.             (confirm)
  217.         )
  218.         
  219.         (copyfiles
  220.             (prompt #copytonemap)
  221.             (help @copyfiles-help)
  222.             (source "ToneMap")
  223.             (dest #DestDir)
  224.             (confirm)
  225.         )
  226.         
  227.         (copyfiles
  228.             (prompt #copydrummap)
  229.             (help @copyfiles-help)
  230.             (source "DrumMap")
  231.             (dest #DestDir)
  232.             (confirm)
  233.         )
  234.     )
  235. )
  236.  
  237. (complete 70)
  238.  
  239. (if (BITAND #InstFlags 16)
  240.     (
  241.         (copyfiles
  242.             (prompt #copycalib)
  243.             (help @copyfiles-help)
  244.             (source "14Bit_Calibration")
  245.             (dest #DestDir)
  246.             (infos)
  247.             (confirm)
  248.         )
  249.     )
  250. )
  251.  
  252. (complete 80)
  253.  
  254. (if (BITAND #InstFlags 32)
  255.     (
  256.         (copyfiles
  257.             (prompt #copymidi)
  258.             (help @copyfiles-help)
  259.             (source "")
  260.             (pattern "MIDI-Files")
  261.             (dest #DestDir)
  262.             (infos)
  263.             (confirm)
  264.         )
  265.     )
  266. )
  267.  
  268. (complete 90)
  269.  
  270. (if (BITAND #InstFlags 32)
  271.     (
  272.         (startup "GMPlay"
  273.             (prompt #addassign)
  274.             (help @startup-help)
  275.             (command (cat "Assign GM: \"" #DestDir "\""))
  276.         )
  277.     )
  278. )
  279.  
  280. (makeassign "GM" #DestDir)
  281.  
  282. (complete 100)
  283.  
  284. (message #endmessage)
  285. (exit (quiet))
  286.  
  287. ; End of File
  288.